Deprecated placeholder. External refund flow will be redesigned. Do not use this invoice-level API for new integrations.
https://api.unibee.dev/merchant/invoice/external_gateway_invoice/mark_refunded
Deprecated placeholder. External refund flow will be redesigned. Do not use this invoice-level API for new integrations.
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
| Name | Type | Required | Description |
|---|---|---|---|
externalTransactionId | string | Yes | External refund transaction id from gateway |
gatewayId | integer | No | Optional. External gateway id; omit to use invoice’s current gateway for auth |
invoiceId | string | Yes | Invoice id |
signature | string | Yes | HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex |
timestamp | integer | Yes | Request timestamp, UTC seconds, used for expiry check |
code, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.invoiceId | string | Invoice id |
data.refundId | string | Created refund id |
data.status | string | Result status, e.g. success |
message | string | Human-readable message |
requestId | string | Request ID for support |
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Deprecated placeholder. External refund flow will be redesigned. Do not use this invoice-level API for new integrations.
External refund transaction id from gateway
Invoice id
HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex
Request timestamp, UTC seconds, used for expiry check
Optional. External gateway id; omit to use invoice's current gateway for auth